import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import * as getters from './getters'
import * as actions from './actions'
import * as mutations from './mutations'
import navbar from './modules/navbar'
import toolbar from './modules/toolbar'
import workspace from './modules/workspace'
import modal from './modules/modal'
import alerts from './modules/alerts'
import loading from './modules/loading'

Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production'

export default new Vuex.Store({
    state,
    actions,
    getters,
    mutations,
    modules: {
        navbar,
        toolbar,
        workspace,
        modal,
        alerts,
        loading
    },
    strict: debug
})
